package com.lsa.shenn.common;

import java.util.List;

import com.lsa.helpers.IntArrayListAdapter;
import com.lsa.helpers.Utils;

public abstract class AbstractSorter implements Sorter {
	@Override
	public int[] sort(int[] array) {
		List<Integer> list = new IntArrayListAdapter(array);
		list = sort(list);
		return Utils.toPrimitiveArray(list);
	}

	@Override
	public abstract List<Integer> sort(List<Integer> array);
}
